| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Font.h
1 // FontManager.h
3 //
5
6 namespace nkWinUi
7 {
13 class Font
14 {
15 public :
16
17 // Constructor, destructor
21 Font () noexcept ;
27 virtual ~Font () ;
28
29 // Getters
33 nkMemory::StringView getName () const ;
37 nkMemory::StringView getFaceName () const ;
41 FONT_ANTI_ALIASING_QUALITY getAntiAliasingQuality () const ;
45 unsigned int getSize () const ;
49 bool getDefault () const ;
53 bool getReadyForUse () const ;
54
55 // Setters
63 void setName (nkMemory::StringView value) ;
71 void setFaceName (nkMemory::StringView value) ;
79 void setAntiAliasingQuality (FONT_ANTI_ALIASING_QUALITY value) ;
87 void setSize (unsigned int value) ;
95 void setDefault (bool value) ;
96
97 // Loading
101 virtual void load () = 0 ;
105 virtual void unload () = 0 ;
109 void reload () ;
110
111 public :
112
113 // Statics
121 static nkMemory::UniquePtr<Font> create (System* system = nullptr) ;
122 } ;
123 }
nkWinUi::Font::reload
void reload()
nkWinUi::Font::getReadyForUse
bool getReadyForUse() const
nkWinUi::Font::getDefault
bool getDefault() const
nkWinUi::Font::setAntiAliasingQuality
void setAntiAliasingQuality(FONT_ANTI_ALIASING_QUALITY value)
nkWinUi::Font::setFaceName
void setFaceName(nkMemory::StringView value)
nkWinUi::FONT_ANTI_ALIASING_QUALITY
FONT_ANTI_ALIASING_QUALITY
Lists the available font anti-aliasing quality level supported.
Definition: FontAntiAliasingQuality.h:12
nkWinUi::Font
Offers an interface to work with fonts.
Definition: Font.h:14
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::Font::Font
Font() noexcept
nkWinUi::Font::getFaceName
nkMemory::StringView getFaceName() const
nkWinUi::Font::getName
nkMemory::StringView getName() const
nkWinUi::Font::setSize
void setSize(unsigned int value)
nkWinUi::Font::setName
void setName(nkMemory::StringView value)
nkWinUi::Font::load
virtual void load()=0
nkWinUi::Font::unload
virtual void unload()=0
nkWinUi::Font::setDefault
void setDefault(bool value)
nkWinUi::Font::create
static nkMemory::UniquePtr< Font > create(System *system=nullptr)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::Font::getAntiAliasingQuality
FONT_ANTI_ALIASING_QUALITY getAntiAliasingQuality() const
nkWinUi::Font::getSize
unsigned int getSize() const
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7